<?php 
class note extends Model{

	private $table="xdf_note";
	private $fields=array("id","name","amount");
	public function addNote($name,$note_amount) {
		$sql="INSERT INTO `$this->table` (`name`,`amount`) VALUES('$name','$note_amount');";
		return $this->_db->insert($sql);
	}
	public function getNoteById($note_id){
		$sql="SELECT * FROM $this->table WHERE `id`='$note_id';";
		return $this->fetchRow($sql);
	}
}